The attached trivial patch fixes a spurious gcc-4.0 warning in
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 3 Aug 2005 09:34:37 +0000 (09:34 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 3 Aug 2005 09:34:37 +0000 (09:34 +0000)
xen/arch/x86/mm.c when building the current hg tip.  Due to -Werror,
this breaks builds with gcc-4.0.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
xen/arch/x86/mm.c

index a8c9708f584089618142c6537e1ec2a5eb6d2f5c..0734c50847ca25a30ce2e3bea9211289aee1196c 100644 (file)
@@ -1040,7 +1040,7 @@ static int mod_l2_entry(l2_pgentry_t *pl2e,
                         unsigned int type)
 {
     l2_pgentry_t ol2e;
-    unsigned long vaddr;
+    unsigned long vaddr = 0;
 
     if ( unlikely(!is_guest_l2_slot(type,pgentry_ptr_to_slot(pl2e))) )
     {